#!/bin/bash

if [[ -n "${JACOCO_AGENT_PATH}" && -e "${JACOCO_AGENT_PATH}" ]]; then
  export JAVA_TOOL_OPTIONS="-javaagent:${JACOCO_AGENT_PATH}=includes=*,output=tcpserver,port=16880,address=*"
fi

/usr/local/jdk-17.0.8/bin/java -Xmx2g -Xms2g -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=36006 -jar "-Djava.security.egd=file:/dev/urandom" /home/zenlayer/app.application.jar --spring.profiles.active=prod,${ENVI}